home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 1.5 KB | 48 lines | [TEXT/GEOL] |
- Item forwarded by APPLE.BUGS to MACDTS
-
- Item 0158579 26-July-89 16:47
-
- From: D0015 San Diego Levco, Keith Ostrom, PRT
-
- To: APPLE.BUGS Apple Bugs Reporting
-
- cc: MACAPP.TECH$MACAPP.TEST MACAPP Tech
-
- Sub: TWindow.fIsResizable bug
-
- Hi all -
-
- Just got MacApp 2.0b9. Better.
-
- I noted that TWindow now respects fIsResizable, however, the fix is not
- correct. Your fix is to trap out the flag in TWindow.ResizeByUser.
-
- The trouble is that TApplication.HandleMouseDown is the place to fix this. The
- reason is that HandleMouseDown calls the (oddly named) FindWindow trap, which
- doesn't know that it isn't supposed to return inGrow. The result is that fixed
- sized windows have a dead spot in the lower right corner. I have a fixed
- scrapbook-like window with a scroll bar laying across the bottom - the right
- arrow is dead.
-
- The correct fix is to coerce whereMouseDown from inGrow to inContent before the
- main case statement, ie.
-
- IF (not aWindow.fIsResizable) and (whereMouseDown=inGrow) then
- whereMouseDown:=inContent;
-
- I don't have the source here handy (offsite), so this is the idea if not the
- exact wording.
-
- (By the way, FindWindow as a trap name always bothered me. It's either
- misnamed - how about WheresDaMouse or WhatGotHit - or it's just a little
- overenthusiatic, finding a variety of other things besides windows - just a
- comment)
-
- Regards --
-
- Duane Maxwell
- Local MacApp Jockey
- Levco
-
-
-